Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Windows #30

Merged
merged 7 commits into from
Feb 21, 2019
Merged

Add Support for Windows #30

merged 7 commits into from
Feb 21, 2019

Conversation

ryan-pip
Copy link

Add windows compatibility by using winkerberos. #28 #22

@codecov-io
Copy link

codecov-io commented Jan 14, 2019

Codecov Report

Merging #30 into master will decrease coverage by 1.43%.
The diff coverage is 12.5%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #30      +/-   ##
==========================================
- Coverage   88.72%   87.29%   -1.44%     
==========================================
  Files           2        2              
  Lines         417      425       +8     
  Branches       71       72       +1     
==========================================
+ Hits          370      371       +1     
- Misses         26       32       +6     
- Partials       21       22       +1
Impacted Files Coverage Δ
puresasl/mechanisms.py 86.11% <12.5%> (-1.68%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b5eacb7...75599e3. Read the comment docs.

puresasl/mechanisms.py Outdated Show resolved Hide resolved
puresasl/mechanisms.py Outdated Show resolved Hide resolved
@thobbs
Copy link
Owner

thobbs commented Jan 14, 2019

This would be awesome to have! I just have a couple of minor comments on the changes. Thanks!

@thobbs
Copy link
Owner

thobbs commented Jan 14, 2019

This looks good to me. @ryan-pip I assume you were able to give this a test run? I haven't done so due to the elaborate setup required.

@ashafer01 do you have any input? If not, I think this is good to merge.

@ryan-pip
Copy link
Author

Yes, i was able to give it a test run. Did a run in a clean env using pip to install and was missing a lib in setup.py but fixed now.

@ashafer01
Copy link
Collaborator

ashafer01 commented Jan 18, 2019

Two very minor suggestions:

  • We should standardize on using "win" in sys.platform or platform.system() == 'Windows'
  • We should explicitly perform the capitalization monkey patch in the test module as well rather than letting it happen implicitly by importing the mechanisms module.

👍 with or without these

@ryan-pip
Copy link
Author

Does anyone have preference one way or another which way we standardise?

If we apply the monkey patch in the test and then removed it in the code wouldn’t we end up with a test that would pass and a module that would fail?

@ashafer01
Copy link
Collaborator

Good point about the test, yeah let's not do that.

platform.system() feels more robust to me but I have no experience with using either solution.

@thobbs
Copy link
Owner

thobbs commented Jan 18, 2019

I also prefer platform.system(), so I've replaced the check in setup.py to standardize on that.

Sounds like we're all on the same page. I'll merge at the end of the day if there are no objections.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants